﻿using CHSystemApi.Framework.Extension;
using System;
using System.Collections.Generic;
using System.Text;

namespace CHSystemApi.Framework.Redis
{
    public interface IRedis
    {
        string Get(string key);

        T Get<T>(string key);

        bool Set(string key, object value, TimeSpan expiry);

        bool Exist(string key);

        bool Remove(string key);

        IRedis ChangeDataBase(RedisDataBaseType type);
    }
}
